export const COLOR_LIST = [
  "#1774FA",
  "#2AD38C",
  "#FFC230",
  "#FF8042",
  "#8E71FF",
  "#DA79F2",
  "#5CDBFF",
  "#85EC7D",
  "#B7F389",
  "#9E9E9E"
];

export const LINE_COLOR = "#EAEBEF";
export const TEXT_COLOR = "#242930";
export const THEME_COLOR = "#1774FA";

export enum DEVICE_TYPE_ENUM {
  CABINET = "柜式机",
  MAKE_TEA = "泡茶机",
  MIXING_MAT = "混料机",
  TEA_MILK = "奶茶机",
  EXPIRY = "效期机",
  TEA_POWDER = "茶粉机",
  PULPER = "捣汁机",
  MIXING = "配料机"
}

/**
 *
 * device_type:
 *   cabinet: 柜式机
 *   mixer: 混料机
 *   tea: 泡茶机
 *   expiry: 效期机
 *   powder: 茶粉机
 *   ingredient: 配料机
 *   pulper: 捣汁机
 */

export const DEVICE_TYPE_TRANS = {
  [DEVICE_TYPE_ENUM.CABINET]: "device_type.cabinet",
  [DEVICE_TYPE_ENUM.MAKE_TEA]: "device_type.tea",
  [DEVICE_TYPE_ENUM.MIXING_MAT]: "device_type.mixer",
  [DEVICE_TYPE_ENUM.TEA_MILK]: "device_type.tea_milk",
  [DEVICE_TYPE_ENUM.EXPIRY]: "device_type.expiry",
  [DEVICE_TYPE_ENUM.TEA_POWDER]: "device_type.powder",
  [DEVICE_TYPE_ENUM.PULPER]: "device_type.pulper",
  [DEVICE_TYPE_ENUM.MIXING]: "device_type.ingredient"
};

export const DEVICE_TYPE_MATCH = {
  G: DEVICE_TYPE_ENUM.CABINET,
  H: DEVICE_TYPE_ENUM.MIXING_MAT,
  S: DEVICE_TYPE_ENUM.MAKE_TEA,
  E: DEVICE_TYPE_ENUM.EXPIRY,
  tp: DEVICE_TYPE_ENUM.TEA_POWDER,
  BAT: DEVICE_TYPE_ENUM.MIXING,
  JU: DEVICE_TYPE_ENUM.PULPER
};

export const DEVICE_ID_LIST = ["U", "V", "K", "E", "tp", "BAT", "JU"];

export const DEVICE_TYPE_LIST = [
  {
    routeKey: "cabinet",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.CABINET],
    value: DEVICE_TYPE_ENUM.CABINET
  },
  {
    routeKey: "makeTea",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.MAKE_TEA],
    value: DEVICE_TYPE_ENUM.MAKE_TEA
  },
  {
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.MIXING_MAT],
    value: DEVICE_TYPE_ENUM.MIXING_MAT
  },
  {
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.TEA_MILK],
    value: DEVICE_TYPE_ENUM.TEA_MILK
  },
  {
    routeKey: "expiry",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.EXPIRY],
    value: DEVICE_TYPE_ENUM.EXPIRY
  },
  {
    routeKey: "teaPowder",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.TEA_POWDER],
    value: DEVICE_TYPE_ENUM.TEA_POWDER
  },
  {
    routeKey: "pulper",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.PULPER],
    value: DEVICE_TYPE_ENUM.PULPER
  }
];

export const FACTORY_TYPE_LIST = [
  ...DEVICE_TYPE_LIST,
  {
    routeKey: "mixing",
    label: DEVICE_TYPE_TRANS[DEVICE_TYPE_ENUM.MIXING],
    value: DEVICE_TYPE_ENUM.MIXING
  }
];
